package com.hmdp.service;

import com.hmdp.dto.Result;
import com.hmdp.entity.Follow;
import com.baomidou.mybatisplus.extension.service.IService;

/**
*@Author: X_x
*@Date: 2024-08-27-11-44
*@Description:  * @param null
*@return:
*@tags: 梦想和爱 健康和学习
*/
public interface IFollowService extends IService<Follow> {
    /**
     * 关注和取关
     * @param followUserId
     * @param isFollow
     * @return
     */
    Result follow(Long followUserId, Boolean isFollow);
    /**
     * 查询是否关注
     * @param followUserId
     * @return
     */
    Result isFollow(Long followUserId);
    /**
     * 共同关注
     * @param id
     * @return
     */
    Result followCommons(Long id);
}
